package day02;
import java.util.Scanner;
public class ScannerDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);//创建一个键盘扫描

        System.out.println("请输入你的年龄：");// 输出提醒
        int age = sc.nextInt();// 接受键盘输入值
        System.out.println("你的年龄是："+age);// 输出

        System.out.println("请输入价格");
        double price = sc.nextDouble();
        System.out.println("价格是"+price);
    }
}
